// 将所有图片导入进来
const allComponents = require.context('@/static/img', false, /\.(png|jpg|gif|jpeg|webp|ico)$/)
let imagesMap = {}
allComponents.keys().forEach(fileName => {
  let comp = allComponents(fileName)
  imagesMap[fileName.replace(/^\.\/(.*)\.\w+$/, '$1')] = comp
})

export default imagesMap
